// 车险转业务
import Vue from 'vue'
import {store} from '@/store/index'
import commonFn from './common_fn.ts'

const vueObj:any =  new Vue()

const conf = {
    title: '转交业务',
    icon: 'icon-folder',
    pag: 'carTransitionBusiness',
    fn (){
        
        store.dispatch('request', {
            url: 'patch/order/id/status',
            data:{
                currentAction: '转业务'
            }
        }).then(success =>{

            if(success){
                vueObj.$Notice.success({
                    title: '成功转业务'
                })

                setTimeout(() =>{
                    commonFn('updateTable','outForm')
                }, 500)
            }
            
        })
    }
    
}

export default conf;